{include file = 'header.tpl'}
{$category}
<div id="forum_mainPost"  class="r w-720 w_w">
<h1><img src="{if $doc.origin eq 0}{$origin.0}{elseif $doc.origin eq 1}{$origin.1}{elseif $doc.origin eq 2}{$origin.2}{elseif $doc.origin eq 3}{$origin.3}{/if}" />{$doc.subject}</h1>
{if $user.username eq $doc.author}
<p> <a href="index.php?doc-edit-{$doc.pid}">编辑</a></p>
{/if}
{$doc.message}
</div>
<div class="l w-225 w_w">
	<div class="ad" id="advlist_4_1"> <a href="http://fengtop.net" target="_blank"><img src="style/ad/230.jpg" border="0" height="200" width="200" /></a> </div>
	<p>wereeeeeeeeeeeeeeeeeeeeeeeeefffffffffffff</p>
</div>
<!--分享按钮20111222-->
<!-- JiaThis Button BEGIN -->
<div id="ckepop" class="r w-720">
<a href="#" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank">分享到：</a>
<a class="jiathis_button_tsina"></a>
<a class="jiathis_button_qzone"></a>
<a class="jiathis_button_kaixin001"></a>
<a class="jiathis_button_douban"></a>
<a class="jiathis_button_renren"></a>
<a class="jiathis_button_twitter"></a>
<a class="jiathis_button_fb"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->

{section name=i loop=$reply} 
<div class="r w-720">
<p>回帖者：{$reply[i].author}</p>
内容：{$reply[i].message}
<hr style="border:1px dashed red; height:1px"/>
</div>
{/section}

{if $user.uid neq 0 }
<br>
<div id="reply" class="r w-720">
	<p align="left">发表评论:</p>
	<form name="example" method="post" action="index.php?doc-reply-{$doc.pid}">
		<input name=pid type=hidden value="{$doc.pid}">
		<input name=fid type=hidden value="{$doc.fid}">
		<input name=tid type=hidden value="{$doc.tid}">
		<textarea name="content" style="width:100%;height:200px;visibility:hidden;"> </textarea>
		<br />
		<ul>
			<li class="yzm">
				<span>验证码: </span>
				<input id="code1" name="code1" type="text" />
				<label class="m-lr8"><img id="verifycode" src="index.php?user-code" onclick="updateverifycode();" /></label>
				<a href="javascript:updateverifycode();">换一个</a>&nbsp;&nbsp;&nbsp;&nbsp;注:评论长度最大为200个字符。
			</li>
		</ul>
		<br />
		<input type="submit" name="reply" value="提交内容" />
	</form>
</div>
{/if}
{include file = 'footer.tpl'}